import request from '@/utils/request'
import config from '@/utils/config'
// config.BaseUrl 114
// config.real1Url 118

// 新增平台抽佣比例设置
export function addPlatformCommission(params) {
  return request({
    url: config.BaseUrl + '/platformCommissionConfig/add',
    method: 'post',
    data: params
  })
}

// 编辑平台抽佣比例设置
export function editPlatformCommission(params) {
  return request({
    url: config.BaseUrl + '/platformCommissionConfig/edit',
    method: 'post',
    data: params
  })
}

// 删除平台抽佣比例设置
export function delPlatformCommission(params) {
  return request({
    url: config.BaseUrl + '/platformCommissionConfig/del',
    method: 'post',
    data: params
  })
}

// 分页查询平台抽佣比例设置
export function getPlatformCommissionConfigList(params) {
  return request({
    url: config.BaseUrl + '/platformCommissionConfig/query/page',
    method: 'get',
    params: params
  })
}

// 分页查询平台抽佣
export function getPlatformCommissionList(params) {
  return request({
    url: config.BaseUrl + '/platformCommission/query/page',
    method: 'get',
    params: params
  })
}

// 创建平台抽佣提现申请
export function createPlatformCommission(params) {
  return request({
    url: config.BaseUrl + '/platformCommission/record/build',
    method: 'post',
    data: params
  })
}

// 查看月交易订单
export function getMonthOrderList(params) {
  return request({
    url: config.BaseUrl + '/platformCommission/query/goodsOrder',
    method: 'get',
    params: params
  })
}

// 查看平台抽佣提现申请拒绝原因
export function getRefusedReason(params) {
  return request({
    url: config.BaseUrl + '/platformCommission/refusedReason',
    method: 'get',
    params: params
  })
}

// 查看平台抽佣提现申请打款证明
export function getLoanedVoucher(params) {
  return request({
    url: config.BaseUrl + '/platformCommission/loanedVoucher',
    method: 'get',
    params: params
  })
}
